import 'package:file_transfer/route/simple_route.dart';
import 'package:flutter/material.dart';

PreferredSizeWidget pageAppBar(String title,BuildContext context,{Color iconColor = Colors.white}){
  return AppBar(
    backgroundColor: Colors.blueAccent,
    leading: IconButton(icon: Icon(Icons.arrow_back,color: iconColor),
      onPressed: ()=>SimpleRoute.instance().toBack(context),),
    title: Text(title,style: TextStyle(color: iconColor)),
  );
}